package com.zuo.mall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zuo.mall.entity.UmsMenu;
import com.zuo.mall.entity.UmsRole;
import com.zuo.mall.mapper.UmsRoleMapper;
import com.zuo.mall.service.UmsRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UmsRoleServiceImpl extends ServiceImpl<UmsRoleMapper, UmsRole> implements UmsRoleService {
    @Autowired
    private UmsRoleMapper roleMapper;
    @Override
    public List<UmsMenu> getMenuList(Long adminId) {
        return roleMapper.getMenuListByAdminId(adminId);
    }
}
